<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var obj = {
        hero: 'niHao',
        setHero () {
            return this.hero
        }
    }
    let func = obj.setHero
    console.log(func())
</script>
</body>
</html>
